<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>tab</title>
    <script src="jQuery/jquery-1.12.4.js"></script>
    <style>
        *{
            margin: 0;
            padding: 0;
            list-style: none;
        }
        .tab{
            width: 1000px;
            height: 475px;
            margin: 50px auto;

        }
        .ull{
            background-color: #ff6700;
            border: 1px solid #ddd;
            border-bottom: 0;
            height: 36px;
            width: 320px;
        }
        .ull li{
            float: left;
            width: 80px;
            height: 34px;
            line-height: 34px;
            text-align: center;
            cursor: pointer;
            border-top: 4px solid #fff;
        }
        .Div {
            width: 1002px;
            height: 476px;
            border: 1px solid #ddd;
        }
        .Div div{
            width: 1000px;
            height: 475px;
        }
        .Div div:nth-child(1){
            display: block;
            background-image: url("tab-imgs/guojidapai.jpg");
        }
        .Div div:nth-child(2){
            display: none;
            background-image: url("tab-imgs/guozhuangmingpin.jpg");
        }
        .Div div:nth-child(3){
            display: none;
            background-image: url("tab-imgs/nanshijingpin.jpg");
        }
        .Div div:nth-child(4){
            display: none;
            background-image: url("tab-imgs/qingjieyongpin.jpg");
        }

    </style>
</head>
<body>
<div class="tab">
    <ul class="ull">
        <li>国际大牌</li>
        <li>国妆名牌</li>
        <li>清洁用品</li>
        <li>清洁用品</li>
    </ul>

    <div class="Div">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>
<script>
    $(function () {
        $(".ull li").mouseenter(function () {
            $(".Div>div:eq("+$(this).index()+")").css("display","block");
            $(".Div>div:eq("+$(this).index()+")").siblings().css("display","none");
        })
    })
</script>
</body>
</html>